/*
 * @Author: 陈国庆 2306727047@qq.com
 * @Date: 2023-12-09 11:20:15
 * @LastEditors: 陈国庆 2306727047@qq.com
 * @LastEditTime: 2023-12-11 12:49:50
 * @FilePath: \boke7.0\boke-server\src\dataBase\Entities\user.entity.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/*
 * @Author: 陈国庆 2306727047@qq.com
 * @Date: 2023-12-09 11:20:15
 * @LastEditors: 陈国庆 2306727047@qq.com
 * @LastEditTime: 2023-12-09 11:20:36
 * @FilePath: \boke7.0\boke-server\src\dataBase\Entities\user.entity.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  username: string;

  @Column()
  password: string;

  /**
   * 性别
   */
  @Column()
  sex:string

  /**
   * 头像
   */
  @Column()
  avatar:string

  /**
   * 角色
   */
  @Column()
  role:number

  @Column({ default: true })
  isActive: boolean;
}